<template>
  <div class="function">
    <div class="left">
      <i :class="arr.oneclass"></i>
      <span>{{ arr.span }}</span>
    </div>
    <div class="right">
      <p v-if="arr.p !== ''">{{ arr.p }}</p>
      <img v-if="arr.img !== ''" :src="arr.img" alt="" />
      <em :class="arr.twoclass"></em>
    </div>
  </div>
</template>
<script>
export default {
  props: ["arr"],
  methods: {},
};
</script>
<style lang="less" scoped>
.function {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.3rem 0.3rem 0.3rem 0.2rem;
  height: 0.95rem;
  line-height: 0.3rem;
  .left {
    display: flex;
    color: #000;
    i {
      font-size: 0.3rem;
      margin-right: 0.25rem;
    }
    span {
      font-size: 0.26rem;
    }
  }
  .right {
    display: flex;
    p {
      font-size: 0.18rem;
      color: #9f9f9f;
    }
    img {
      width: 0.45rem;
      height: 0.45rem;
      margin-left: 0.15rem;
      border-radius: 50%;
    }
    em {
      font-size: 0.25rem;
      margin-left: 0.15rem;
    }
  }
}
</style>